	.text
	.align 2
	.globl main
	.type main, @function
main:
	addi sp, sp, -128
	sd ra, 120(sp)
	sd s0, 112(sp)
	addi s0, sp, 128
.main_label_entry:
# %op0 = alloca i32
	li t0, 28
	sub t1, fp, t0
	sd t1, -24(fp)
# store i32 1, i32* %op0
	ld t1, -24(fp)
	addi t0, zero, 1
	sw t0, 0(t1)
# %op1 = alloca i32
	li t0, 44
	sub t1, fp, t0
	sd t1, -40(fp)
# store i32 1, i32* %op1
	ld t1, -40(fp)
	addi t0, zero, 1
	sw t0, 0(t1)
# %op2 = alloca i32
	li t0, 60
	sub t1, fp, t0
	sd t1, -56(fp)
# %op3 = call i32 @getint()
	jal getint
	sw a0, -64(fp)
# store i32 %op3, i32* %op2
	ld t1, -56(fp)
	lw t0, -64(fp)
	sw t0, 0(t1)
# br label %label4
	j .main_label4
.main_label4:
# %op5 = load i32, i32* %op0
	ld t0, -24(fp)
	lw t0, 0(t0)
	sw t0, -68(fp)
# %op6 = icmp slt i32 %op5, 999999999
	lw t0, -68(fp)
	li t1, 999999999
	slt t0,t0,t1
	sb t0, -69(fp)
# br i1 %op6, label %label7, label %label12
	lb t1, -69(fp)
	addi t0, zero, 0
	blt t0, t1, .main_label7
	j .main_label12
.main_label7:
# %op8 = load i32, i32* %op0
	ld t0, -24(fp)
	lw t0, 0(t0)
	sw t0, -76(fp)
# %op9 = load i32, i32* %op2
	ld t0, -56(fp)
	lw t0, 0(t0)
	sw t0, -80(fp)
# %op10 = srem i32 %op8, %op9
	lw t0, -76(fp)
	lw t1, -80(fp)
	remw t2, t0, t1
	sw t2, -84(fp)
# %op11 = icmp eq i32 %op10, 0
	lw t0, -84(fp)
	addi t1, zero, 0
	slt s11,t1,t0
	slt t0,t0,t1
	or t0,t0,s11
	addi s11,zero,1
	sub  t0,s11,t0
	sb t0, -85(fp)
# br i1 %op11, label %label15, label %label18
	lb t1, -85(fp)
	addi t0, zero, 0
	blt t0, t1, .main_label15
	j .main_label18
.main_label12:
# %op13 = load i32, i32* %op2
	ld t0, -56(fp)
	lw t0, 0(t0)
	sw t0, -92(fp)
# call void @putint(i32 %op13)
	lw a0, -92(fp)
	jal putint
# %op14 = load i32, i32* %op0
	ld t0, -24(fp)
	lw t0, 0(t0)
	sw t0, -96(fp)
# ret i32 %op14
	lw a0, -96(fp)
	j main_exit
.main_label15:
# %op16 = load i32, i32* %op0
	ld t0, -24(fp)
	lw t0, 0(t0)
	sw t0, -100(fp)
# %op17 = add i32 %op16, 3
	lw t0, -100(fp)
	addi t1, zero, 3
	add t2, t0, t1
	sw t2, -104(fp)
# store i32 %op17, i32* %op0
	ld t1, -24(fp)
	lw t0, -104(fp)
	sw t0, 0(t1)
# store i32 411, i32* %op1
	ld t1, -40(fp)
	addi t0, zero, 411
	sw t0, 0(t1)
# br label %label21
	j .main_label21
.main_label18:
# %op19 = load i32, i32* %op0
	ld t0, -24(fp)
	lw t0, 0(t0)
	sw t0, -108(fp)
# %op20 = add i32 %op19, 2
	lw t0, -108(fp)
	addi t1, zero, 2
	add t2, t0, t1
	sw t2, -112(fp)
# store i32 %op20, i32* %op0
	ld t1, -24(fp)
	lw t0, -112(fp)
	sw t0, 0(t1)
# store i32 101, i32* %op1
	ld t1, -40(fp)
	addi t0, zero, 101
	sw t0, 0(t1)
# br label %label21
	j .main_label21
.main_label21:
# %op22 = load i32, i32* %op0
	ld t0, -24(fp)
	lw t0, 0(t0)
	sw t0, -116(fp)
# %op23 = load i32, i32* %op1
	ld t0, -40(fp)
	lw t0, 0(t0)
	sw t0, -120(fp)
# %op24 = srem i32 %op23, 3
	lw t0, -120(fp)
	addi t1, zero, 3
	remw t2, t0, t1
	sw t2, -124(fp)
# %op25 = add i32 %op22, %op24
	lw t0, -116(fp)
	lw t1, -124(fp)
	add t2, t0, t1
	sw t2, -128(fp)
# store i32 %op25, i32* %op0
	ld t1, -24(fp)
	lw t0, -128(fp)
	sw t0, 0(t1)
# br label %label4
	j .main_label4
main_exit:
	# epilog
	ld ra, 120(sp)
	ld s0, 112(sp)
	addi sp, sp, 128
	jr ra
